import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '签约商户',
    align: "center",
    dataIndex: 'businessId_dictText'
  },
  {
    title: '服务公司',
    align: "center",
    dataIndex: 'companyId_dictText'
  },
  {
    title: '人才信息',
    align: "center",
    dataIndex: 'name',
    width: 240,
    slots: { customRender: 'memberInfoSlot' },
  },
  // {
  //   title: '手机号码',
  //   align: "center",
  //   dataIndex: 'phone'
  // },
  // {
  //   title: '银行卡类型',
  //   align: "center",
  //   dataIndex: 'bankCardType_dictText'
  // },
  {
    title: '银行信息',
    align: "center",
    dataIndex: 'bank',
    width: 240,
    slots: { customRender: 'bankInfoSlot' },
  },
  {
    title: '签约服务类型',
    align: "center",
    dataIndex: 'signingServiceId_dictText',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: '用户状态',
    align: "center",
    dataIndex: 'status',
    filters: [
      { text: '正常', value: '1' },
      { text: '冻结', value: '2' },
    ],
    filterMultiple: false,
    slots: { customRender: 'userStatusSlot' },
  },
  {
    title: '签约状态',
    align: "center",
    dataIndex: 'signingStatus_dictText',
    slots: { customRender: 'signingStatusSlot' },
  },
  // {
  //   title: '签约备注/拒绝原因',
  //   align: "center",
  //   dataIndex: 'signingRemark',
  //   customRender:({text}) =>{
  //     return !text ? "-" : text;
  //   },
  // },
  {
    title: '创建时间',
    align: "center",
    sorter: true,
    width: 150,
    dataIndex: 'createTime',
  },
];
